package com.boot.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "order")
@Data
public class OrderProperties {
    private String timeout;
    private String  autoConfirm;
    private String dbUrl;
    private String name;

    public void setTimeout(String timeout) {
        this.timeout = timeout;
        System.out.println("设置了timeout=" + timeout);
    }
}
